package com.paco.study.cloud.gateway.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "cloud-service-user",
        path = "/user",
        fallback = UserFeignFallBack.class,
        configuration = FeignConfig.class
)
public interface UserFeignClient {
    //调用的请求路径
    @GetMapping(value = "/info/{token}")
    String info(@PathVariable("token") String token);
}